No it does not cause any problem at all. Men produce sperms - male sex cell, in large quantities daily compared to women who produce one ovum - female sex cell, once a month. Any thing which is produced in excess is not emptied will trikle out like happened in your case.
Next Steps
Do masturbation may be once a week so that the semen is removed manually and you do not get night fall.
Health Tips
Do not get addicted to this habbit and do not listen to any one other than your doctor as there are so many myths circulating regarding it.