Can a lawyer appear in court for me if I was charged with a misdemeanor ?

Can a lawyer appear in court for me if I was charged with a misdemeanor ?
I was arrested for possession of marijuana and was sentenced a fine and a court date but I’m international and had to go back to my country because my visa would expire. Do I have to go to my court date or can a lawyer go for me?

Justin’s Answer
A lawyer can appear for you, request time to pay, and explain the situation. However, if you plead guilty to drug possession, you may find it difficult to get back into the country. You should talk to a lawyer about setting aside your plea and getting the charged amended to something else.