Suit bag carry on

I’m travelling to Ireland for a wedding and only bringing a carry on small case. So wanted to carry my suit in its bag onboard to avoid squeezing it into a small case. Is this possible?