No. For most independent properties the platforms are the largest source of first time guests, and leaving them would empty the calendar. The better goal is balance: use the platforms for discovery, and make sure that anyone who searches your name afterward finds a direct option that is at least as good.
Read each platform's terms before you act. Some restrict contacting guests outside their messaging or advertising a lower public rate elsewhere. There is still plenty of room inside those rules, such as direct perks that are not a rate cut, a welcome card that carries your web address, and a wifi login that collects an email with consent.
Over a few seasons the mix shifts. Returning guests, referrals and people who found your guides book direct, and the platforms fill the remaining nights. That is a healthier position than depending on how one listing ranks.