Firstly, get this clear. Entrepreneurship is a career. Working for someone else (aka 9 to 5) is also a career.
Needed to make that clarification, because the hype around entrepreneurship has made many think entrepreneurship is equal to making big money or it's a ticket to easy extra money. While that has been true for some, it's not the norm.
When you have this proper perspective, you see and appreciate the need to play long. And by playing long games, the upside is massive.
Some of us are built for one, more than the other. Never allow anyone to shame you out of a 9 to 5 job you love because of the allure of entrepreneurship.
I have heard stories of folks who left their business to go work for someone, and it has nothing to do with security. It's more like choosing your favourite devil.
Having your personal business is gruelling, so is building a solid 9-5 career. As an entrepreneur starting out, you would have to wear many hats for your business. When building a 9 -5, knowing and working in the best place for you is not an easy task not to talk of manoeuvring office politics and power play so you don't join the Night King's army before your time.
If money is a strong parameter for you. Do not assume being an entrepreneur gives the biggest returns. Do your own research. Find out what the average worker in your industry earns, then make a decision.
Here is a simple example; The average salary for a Software Engineer with Python skills in the USA is $70,288 (Payscale). So if you're reading this book in your final year in University for a CS degree, such information should guide your decision with several other factors peculiar to you.
Also, know that the returns of a day job and entrepreneurship vary based on which part of the world you're living.
The wisdom here is, be very clear in your head what you want to do. Don't follow trend, hypes or peer pressure.
Whichever you choose, be aware it's not going to be an easy ride. Both are equally rewarding.
Choose what fulfils you (or at least what you think will).
PS: Corrections are welcome.