Of course not.
But, they most certainly can prohibit you from boarding with the item.
More to the point and presuming that the OHs were full and your bag won't fit under the seat in front of you, what exactly would you propose AC do in the circumstance?
It is an issue faced by pretty much every carrier operating standard mainline single aisle aircraft and which has a reasonable carry-on allowance.