Changing One's Madh-hab To Fit In With The Local Community

Q: A friend of mine who was born in Pakistan had migrated to Indonesia. He has no intention of going back to Pakistan. Now, he has a family in Indonesia. He is asking is it right that he changed his mazhab because he don't want to be the only one different in his own house and the community. His wife is also a local there and his children are sent to the local madresa.