Is there a safer way to redirect?

I'm implementing redirection using:

header("Location: " . $redirect);

But if any headers are sent by anything, it all fails. Is there a good, safe, best-practice way to implement redirection in WP?

Thanks.