Yep. Reputably manufactured ones (Dell, HP, Apple, etc) are probably fine.
But the cheapo replacement ones that you see people buy from Amazon, Ali Express, Ebay, etc... can be really not good. :(