But aren't 2d games coded in a different language?
Not necessarily. For example, Lua is used in the Love2D engine, but then it is also used by 3D games like ROBLOX, and GMod.
But indeed, I agree with the suggestion of starting with a 2D game. It's easier to work with flat space other than worrying about 3D models, and textures. It gets
the basics of making a good game into your head. Once you get the hang of it, and make a couple of complete games, you can move on to 3D games.
So starting with Love2D would be your best bet. I'm actually also learning to code as well. I can help you with the basics if you'd like.