Tim Cook, who leads one of the world's largest tech companies, took a hard stand against social media last week.

"I don't have a kid, but I have a nephew that I put some boundaries on," the Apple CEO told students at Harlow College in Essex, England, according to the Guardian. "There are some things that I won't allow; I don't want them on a social network."

Cook's visit coincided with the launch of Apple's coding curriculum at the school. The company gave each student an iPad as Cook told them learning how to code was more important than speaking a second language. While Apple doesn't operate its own social-media network, it created the devices that helps people consume them on a daily basis. 

Cook's comments come as politicians, institutions, behavioral experts, and Silicon Valley heavyweights are taking a critical look at the impact of social media. For example, Facebook updated its algorithm to favor content from friends and family over publishers and brands as part of an effort to promote more meaningful conversations on the platform. Additionally, the American Academy of Pediatrics recently redefined screen time recommendations based on whether children are interacting with the technology or passively watching content. 

"I'm not a person that says we've achieved success if you're using [technology] all the time," Cook said at the event.