no if it was for masturbation it's still not even really a sin, the is no real reason for it to be a sin the jewosh faith has a reason for it be a sin but the catholic faith really doesnt, one could say that its lust but the mortal sins are (in my opnion) only when things such as lust or gluttony or greed completly take over your life
in conclusion your all good