Is it wrong?

Is it wrong to masterbate if your husband doesn’t sleep with you and you badly need it? This obviously involves porn of some sort