yes, the printer will work only with g-code. What Cura does is convert a 3D model from OBJ or STL or 3MF to g-code, which you transfer to the printer. Many other factors to consider and it's good that you are studying. Some of what I've learned has come from the internet, other parts of what I've learned comes from making mistakes.