Can you get a leep procedure while pregnant or is it safer to wait until after?

Wait unless cancer. Unless your OB has a high suspicion for cancer, I would avoid LEEP until after you deliver. Cancer in a 23yo is extremely rare. Most likely, you have severe dysplasia. This is very slow growing and waiting will not change prognosis. A LEEP during pregnancy could cause preterm labor, hemorrhage, or other complications.