nope it happens for plays that are both successful and unsuccessful. i have a video of it happening several times.
the QB will sprint back 35 yards before you can control him. if you do not have 35 yards to sprint back your qb will run out of the endzone for a safety.
once i figure out how to upload my vids i'll post them.
edit:
here is a vid