Yes and no. Nothing happens in a vacuum. If person X develops something that they could not have developed without certain institutional and social and physical infrastructure around them then it’s by no means as clear cut.
For example I think most people in the UK would say if the taxpayer has directly or indirectly underwritten something then it’s not unreasonable for a portion of the profit on that thing to be taxed and spend on the NHS, roads, education, whatever the inventor leveraged and benefitted from along the way. That’s not to say that the inventor can’t or shouldn’t get rich themselves, but it is only fair that they give something back.