Is it gramatically correct to say i got enrolled?
Yes, but using got enrolled instead of simply enrolled lends a special meaning. It suggests that someone else enrolled me without my wanting it, or that there was a problem with my enrollment that I had to overcome. For example: I hoped to keep my name off the list, but I got enrolled anyway; or They made it hard for me to sign up, but finally I got enrolled.