If it happens, you can just throw your sheets in the hamper and put on some new ones.
Masturbation probably cannot prevent wet dreams While masturbation may reduce the number of wet dreams a person experiences, it does not guarantee a person will never experience them.
The evidence is limited, however, and more studies need to be done to determine if sleep position plays any role in whether a person experiences wet dreams.