Yes. The military has tried the multi service aircraft idea in the past, wasted a lot of money, and failed completely to develop one of the desired variants. That was the F-111, which was supposed to have a Navy and Air Force version.
The F-35 was supposed to feature 80% parts commonality between the Air Force, Navy, and Marine Corps versions. Instead, it ended up being 20%.
With that little parts commonality, the different services should've just developed their own planes. All three services would've ended up with a more capable aircraft for their requirements that wasn't so heavily compromised. And it in all likelihood would have been cheaper.
> For it's faults, the F-35 is a weapon that can be configured and deployed at the drop of a hat for just about anything. That's a very powerful capability to have as a defensive and offensive weapon
It can fly a multitude of roles but it is not as good at many of them as a more focused aircraft would be. Considering the massive costs it was a bad trade off.