CST - Can a waveguide port work properly if I make it short in dimensions?

I don't have much space in my design to put waveguide port with correct dimensions. Can i make it short and will waveguide port work properly in short dimensions?

CST Studio Suite ​​​​​​​