This has been discussed a bunch of times.
NO! There are no proven ill effects of "jerking off" before going to the gym. Shit do it 10 times a day for all I care, but NOTHING bad is going to happen.
Its not like every time you "splooge" you drop 50grams of protein