How to change the default takeoff altitude in position control flight mode?

In position control flight mode, when we arm the motors and takeoff, can I set the default takeoff altitude in source code?