If you buy a domain name, does it affect your rankings on google?

The correct answer is "Yes, Google ranks top level domain names higher in their index."

working