If you live in America these warnings are especially valid. The UK seems to have less of these issues and it's fairly well known in popular culture and the media that a fair amount of female med students delve into escorting or other forms of sex work. But escorting here is not illegal and there is far less of a conservative religious culture. Honestly I think it partially depends on how big a name you get and how much exposure you gain from it. If you're just a relatively successful MFC model with a camscore up to around 4/5k tops who isn't making ranks and doesn't go to conventions or heavily promote on twitter/instagram etc, and do more private shows than public, then you're less likely to be recognised by the general public and can probably go about your life without issue.
If your camscore is over that amount and you're regularly camming in the top spots on the page, promote yourself heavily and maintain a strong social media presence, do ranked months, go to conventions etc and are generally a more "famous" model, you're much more likely to impact any career after you leave the cam industry.
It's easy to look at these horror stories where someone gets found out and loses their job, but realistically when you look at how many women delve into modelling or sex work in their youth then move onto other careers you'd probably find that your chances of encountering issues are minimal. Bree Olsen for example is highly famous for porn and was pretty immersed in the industry, she's also pretty outspoken and dated Charlie Sheen. While I don't believe she should be judged for her industry involvement, there is also an element that if you're in the public eye, people can see what you're up to and may make judgments based on that. It's just not the same as being a low exposure cam model.
It also depends on what sort of doctor you wish to be, there may be some areas within medicine where being a former sex worker will be less shocking or public. For some bizarre reason people especially don't like former sex workers working around children, as though sex worker is the same as "sexual predator", which I find funny seeing as small children will be the least affected seeing as they are the least likely to encounter porn on the internet. Though it's the same as people freaking out at topless sunbathers being seen by kids, like kids care about boobs! Boobs literally exist for babies. It's just a scapegoat for what makes them feel uncomfortable. As someone who's training to be a different kind of Dr. yet also working with people, I have chosen areas where I will be less likely to be stigmatized or that I can use my sex work experience to my advantage. We will see how it goes, but I am not ashamed of my life and don't believe it should be an issue for anyone else.
I guess take heed, be aware of these factors, but remember there's also a shortage of doctors in many places. People may fire a teacher or a nurse if they find out, but if you're a qualified doctor I feel like you'd find work, and if you make yourself indispensable to them while you're working and gain experience you should be able to maintain that work. And, I also believe that we should fight stigma by going against these ideas that sex workers cannot ever do anything but sex work, and the only way to do this is by sex workers gaining qualifications and experience which make it hard to fire them for such petty reasons.