In a pinch, you can do it if you're an infantryman engaging a target at 100, 200 yards, provided that you already know how much to compensate at those distances. At sniping distances (e.g. 600 yards) it becomes another matter, because the further you try to reach, the less likely you will be able to compensate effectively. Also keep in mind, the markings in the scope also take into consideration the scope's height off bore, which becomes zero when you cant your rifle 90 degrees, so there goes your ballistic table out the window.
There are no markings on a rifle scope for height over bore (HoB). You have zeros set to your HoB, range, wind, elevation and ammo etc.
Many modern combat scopes also have Christmas tree grids for more reference points, which might actually work pretty well canted.
Of course the point of impact and range drops will all but different, but that’s all reasons why it’s useful to train for this so you have a second ballistic table to use, and know exactly what the drops and compensations are.
I think all this canted aiming might have started off as a bit of a novelty trick-shot, but it’s hard not to think it’s relevant when looking at footage from Gaza.
How many videos have we seen where soldiers expanding a hole in a wall to allow them to better aim out of have resulted in their position getting compromised and the whole building spammed with RPGs/missiles/tank rounds?
In urban combat, engagement ranges are not going to be massive. What is far more important is concealment and surprise. Being able to effectively shot from a gap the other side would immediately write off as too narrow will massively improve your survival chances as well as offer you a lot more useable vantage points.