If you have an iPhone, you may find value in "Silence Unknown Callers"
https://support.apple.com/en-us/HT207099
> With iOS 13 and later, you can turn on Silence Unknown Callers to avoid getting calls from people you don’t know. This blocks phone numbers that you've never been in contact with and don’t have saved in your contacts list. If you’ve previously texted with someone using their phone number or if a person has shared their phone number with you in an email, a phone call from that number will go through.