Options?

Is there any way to masturbate to solve a horny period when you can't have sex with your partner?