As an alternative, if you don't want to hire a personal trainer, I would recommended doing research. There's plenty of YouTube channels and websites with free information on workouts and articles about building muscle/staying healthy. However, you want to ask yourself what your goals are:
-Do you want to get into bodybuilding?
-Do you want to get into powerlifting?
-Are you more interested in bodyweight workouts/calisthenics?
-Do you just want to lose weight?
or etc./All of the above
The only general thing I can tell you is that it's a good idea for beginners (in weightlifting) to focus on compound exercises more than isolation exercises. But once you build a foundation, adding in isolation exercises will help stimulate more growth. But really there's many ways you can approach working out, you just need to find out what it is you want to do.
Lastly, remember to keep a small log book to write in to keep track of what you do in your workouts to keep track of progress. It'll allow you to see where you stand and to set benchmarks to improve from.
I'm running on a poor college student budget right now, so I'm really thankful for all the free resources one can find on the internet. I actually didn't start working out until recently, but for years I've always be doing research online about working out and how to achieve certain goals. It felt kind of redundant not applying and experimenting with what I found, but I'm glad I finally found to courage to just workout. It's something I always look forward to doing whenever I get the chance. And while it may seem intimidating at first, after the first week I worked out in a gym, I was highly motivated after the first week to keep going to the gym. I have a long way to go, however I am determined to enjoy the journey.