General, in a 717 in the scenario you describe, by selecting NAV the aircraft will turn and intercept the SID track, the intercept angle varying depending upon how far one is displaced from the track.
My experience has been that ATC will clear one to a waypoint ahead, rather than require one to regain the SID ASAP. Mind you, my not so worldly experience is all in Australia.