Masochists literally consent to have pain inflicted upon them.
I've dated several women who were into getting slapped during sex.
I just found a loophole in your claim, "if I like pain can I inflict pain?" and the answer is yes, if both parties consent.