No, there are no laws against purchasing IG hearts. It's not even strictly banned by the site's terms of service, as long as likers are all real accounts, as ours are.