I’m new to chess and I had my queen on the left one space away from the king which was on the right and he was unprotected, is that check?
E.g., take the following sample position (note: not provided by the OP - if the OP would like to post the position they had in mind, please feel free to delete this edit):
8/8/8/8/2Qk4/8/8/2R3K1 w - - 0 1