PORN PROBLEMS

is it ever okay to NOT BE INTIMATE WITH YOUR PARTNER BUT RESULT TO MASTURBATION AND PORN ...?? I MEAN COMPLETELY REPLACEING sexual encounters with the wife for self pleasure and PORN

????