Stepper motors changing direction during homing function?

I'll use two different ball tilt sensors on separate interrupt pins so yes. Then I can just tell the code to move back the amount of steps necessary to trigger the tilt sensor in the first place.