Can I still get my tooth extraction surgery if I get gastroenteritis 5 days before?

Yes. Presumably gastro. Has cleared up so it should not be a problem.
Check with your MD. You should really check with your medical doctor to clear you as a patient.