Sure but also I believe that the upper limit for most mortgage servicers is around 41, maybe 43% (one of those two, cannot remember which, or at least it was 4y ago).
I bought a year ago and my max lending amounts were around 45-50% of my gross salary.
There’s no limits per se. 43% is what they “prefer”. More recently with the low demand for mortgages, that number is more flexible. And all of this is on Gross Income and not net. So you could in theory be spending more than 50% of your net income on mortgage alone. If you want to consider “housing” costs, the number would be lot higher.