What device? Pixel devices as far back as the Pixel 2XL have automatic call screening options now so you can automatically screen those calls.
If you need additional help or have more questions or details to share, please join the site so you can reply in this thread. See this link for instructions on how to join Android Central.
Welcome to Android Central! You can also set your Do Not Disturb to only let calls from people in your contact list to come through, if that approach would be helpful.