Yes!
While it’s true that a lot of freelancers, particularly those who work from home, never get a business license, if your local government finds out that you’re running an unlicensed business, you could be fined. And you might even be prevented from doing business until you obtain the license.
So it’s always best to avoid problems by researching the license(s) you need and applying for them.