Yes! You can do this using Customer Group Access:
- Go to Modules > Display Add to Cart Button on Listing > Rules.
- Enable Customer Group Access.
- Select Guest and Visitor and disable them.
- Save changes. Now, only logged-in users will see the Add to Cart button.
