He defended his actions on Monday night's episode and then seemed to get into a Twitter battle with ex Andi Dorfman

The Bachelorette: Nick Viall Tweets About Getting Intimate with Kaitlyn Bristowe: 'Sex Is Not Shameful'

The Bachelorette‘s Kaitlyn Bristowe opens up about getting intimate with a suitor and stands by her decision. Subscribe now to hear what she has to say about having sex on the show in this exclusive interview, only in PEOPLE!

Get push notifications with news, features and more.

Bristowe has previously defended herself against the backlash from critics who she said slut-shamed her, but Viall leaped to her defense on Twitter on Monday night after she told the other Bachelors that she’d hooked up with him.

“Kaitlyn showed a lot of courage by admitting 2 having sex on national TV knowing that she will be unfairly judged by some,” he wrote.

Viall, who was heavily criticized after revealing on national TV that he’d had sex with Andi Dorfman on the past season of The Bachelorette, followed up by Tweeting, “Sex is not shameful. Whether we admit it or not, sex is important part of many serious and meaningful relationships.”

“Both men and women have an equal right to have sex without judgement,” he added.

Dorfman had her own response to Viall, who was the runner-up on her season and shared perhaps more than he needed to with the other bachelors in Monday’s episode, Tweeting, “Rule no.1 Never kiss and tell, Rule no.2 Never kiss and tell twice .”

In what seemed like a reply to Dorfman, Viall then Tweeted, “God only knows where Twitter would be if people lived by the saying “he who is without sin should cast the first stone?”

RELATED VIDEO: The Bachelor Dudes Break Down the Steamiest Bachelorette Yet