Help with the rules of checkmate
No, you may not ever move your king into a position in which it is threatened ("in check").  If you did, your opponent could just immediately capture your king, and you would lose.

Reference from the FIDE Laws of Chess:


  3.9. ... No piece can be moved that will either expose the king of the same colour to check or leave that king in check.