Is masturbation a sin if you are married but far from your husband ?

Indira

I am married to a military guy and we live in different states for the moment. I was wondering if masturbation would be a sin. We haven’t seen each other in months