Probably need to consult the real estate board in your state for a definitive answer on this. The timing, nature, and exact charge of the offense might play a part in determining whether obtaining a real estate license is still possible.
Each state sets their own requirements for real estate licensing. So without knowing in what state you live in, I am unable to answer that question. Your best bet is to go to your state’s website licensing division and check out the requirements.