Not really, but only a 2-3 orders of magnitude off
Using a liberal estimate masturbating for 24 hours would burn 10000 kcals per 24 hour period.
Using the Hiroshoma bomb for reference at 6.3*10^13 J
10000 kcals per day * 4200 joules/kcal * 365 days/year * 6.75 years = 103181850000.0 joules
= 1.0 * 10^11 J spend masturbating over 6 years 9 months