Is it possible to accept Islam after doing something against?
When some body try to learn Islam, and make any questions or arguments or make any sin, even have sin all the life, and accept Islam seeking confess forgiveness, may find success in this life or life after death.
If any one does evil or wrongs his own soul but afterwards seeks Allah.s forgiveness, he will find Allah Oft-forgiving, MOST MERCIFUL.
( سورة النساء , An-Nisa, Chapter #4, Verse #110)
Except for those who repent before they fall into your power: in that case, know that Allah is Oft-forgiving, MOST MERCIFUL.
( سورة المائدة , Al-Maeda, Chapter #5, Verse #34)