PayPal founder and Affirm CEO Max Levchin is speaking out against Indiana's "religious freedom" law and encouraging other Silicon Valley executives to examine their connections to the state.

"I encourage Paypal's new CEO and other CEOs in Silicon Valley to evaluate their relationship with the state of Indiana," he told CNBC's "Squawk on the Street" on Monday. "If local laws and bills say that it is OK to discriminate, you have to make sure that you are protecting your employees and you keep them safe and comfortable."