Of course not. But my experience is a counterexample to the claim "People on visas cannot get raises", which is worded so absolutely as to imply that it is not allowed under the visa program to give someone a raise.
That's all that is needed to disprove OP's statement. Maybe it isn't as common to get a raise on a visa, but that doesn't justify an incorrect statement (or at best a crucial oversimplification).
It's difficult to have an interpretation of a claim as straightforward and direct as the one I was referring to which flatly uses the word "cannot." The statement is just wrong whichever way you look at it given even a single counterexample. Meanwhile, you seem to have taken the worst interpretation of the comment providing their anecdotal experience, inferring for some reason that they meant it as a general statement that applies to everyone, even after they clarified otherwise in a followup reply. Your interpretation seemed so obscene to me that I felt the need to reply in the first place.
Are you suggesting that the massive wage inflation that happened in SV over the last 10 years , combined with the massive increase in real estate prices, in a place where H1 are probably 50% of eng workforce is an example of not getting raises ?