Estimates for the cost of the F35 program vary widely, but a decent guess is 1-1.5 trillion over 50 years or 20 to 30 billion a year.
The US currently spends ~3.5 trillion per year on health care.
So yes, taxpayer funded health care would cost as much as the F35 program. In fact, quite a bit more. Perhaps 150x more per year.