RobotStudio event

Am I able to call specific procedures with RobotStudio SDK?

Say I have a procedure, PROC Home(), that moves the robot to the home position. In my RobotStudio SDK program, I want to be able to call that procedure, and have that procedure run until ENDPROC. Is this possible to do through RobotStudio SDK?