Yes it is possible. I have been free of this self abuse for over 3 years. Frequent Confession with a strong sense of repentance will help GREATLY. If you fall again, go before the Lord in the confessional again. Go to Mass and recieve the Eucharist as soon as you are in a State of Grace. Avoid anything that may arouse you, gazes at attractive women, pornographic images, songs, etc.
If being alone and bored is a problem, visit a good, holy friend, relative, or grandparent. Bad companions will NOT help. Go to a church and Visit our Lord in the Tabernacle. THROW yourself into an interactive, time consuming, hands on hobby . A man must use his sexual energy for a positive use. You can do this my brother! Do not lose hope!!

The Lord is full of Mercy, know that you can defeat Satan!!