If you're talking about the early marketing aspect of a product by building it in public and engaging with your users at key steps, then it's probably a good strategy.
If you are talking about building in public as to get your "personal brand" out there, I'd say it depends on your personality. Some people thrive when the social noise is minimal and they're focused on doing the important work. Others choose to build in public for many different reasons like motivation and networking.