The only way to put yourself in check is by moving.
You can put yourself in check by moving the king. That has nothing to do with pinning. Adding a rule for pinning is redundant.
Did you mean putting your opponent in check? In chess, you are not allowed to put yourself in check.
The only action you can ever take in chess is moving.