It is not illegal, but Netflix's terms specify that you should not share your account with anybody other than your family. Regardless, Netflix is aware of the practice. Indeed, during the 2016 Consumer Electronics Show, Netflix CEO Reed Hastings stated that customers sharing their accounts was a "good thing."