Can I work on OpenGL with Mac M1 ?

I have found different answers on this. I see that Metal is better than OpenGL on mac.

But I have to use OpenGL because of my university exams is there anyway to use it ?