Strongly disagree. Cannot take a an online class for that and be consistently profitable in a few months.
Obviously without knowing your situation I cannot know what is best for you, but I agree with what
@nooby_mcnoob is saying. The industry had changed a lot from when I started. If you like coding, getting "a day job" may be the worst thing to do. You may end up with 10% coding and 90% soul sucking BS. By the time you realize this, you may be too deep in. Some industries are easy to get in, but hard to stay in. Some, like Doctors, are the opposite. If you have a choice, give it some thought.