When you wish to play it safe, you must use “whoa” rather than using “woah.” Whoa is a much older spelling than Woah and is used as a standard spelling variant. While woah is generally used in informal contexts.
So, both are correct.