pinmode and the Arduino MEGA

I'm a little confused over the use of pinmode. Are you able to use pinmode on all of the MEGA digital pins. Maybe I've missed something in the documentation but it appears you can only use pinmode up to digital pin 19 or 20? Are you able to use it up to pin 52? Thanks in advance to anyone for any help

You can use pinMode on all pins.