Having doubts about possible career paths is something that happens to many of us...even grownups :). It is important to know that what is exciting (and possibly a little scary) about machine learning is that it is a relatively new field. In my opinion, what makes that exciting is that you get to learn more and new things about machine learning. It is through that learning and research that you will gain an understanding of what it takes to get to do work in that field.
I can share that having a sustained career in machine learning does require a good understanding of how to write code...but it also involves having some "softer" skill sets, like being able to communicate and translate what the code needs to do so that the people who are intended to benefit from machine learning, actually do.
A few more details on steps to become a machine learner engineer. Try to connect either with people or programs that focus on this area. Use online research guides and read as much as you can about how machine learning is being used. You will find that the spaces where machine learning is used has almost no boundaries.
Best of luck to you!