Not exactly.
Buying links is fair game IF you buy “nofollow” links – links that don’t pass page authority. The backlinks that will most help your rankings are called “dofollow” links. Both help your search rankings. However, "dofollow" links are much more impactful.