2D Games in OpenGL?

Im learning c++, and thinking of trying to learn either Opengl or direct3d for the api, Can you make a 2D game such as space invaders in opengl but use 3d models and lock the axis so you only use x and why and not z so to speak or does that sound like noobie bollox