Can I block certain companies or individuals from sending me mail?
Yes, by using a filter.
Click on the gear icon, then on Settings
In the left pane under Mail, choose Filter Rules
Fill in the blanks
For reference: see https://www.xfinity.com/support/articles/spam-filters-and-email-blocking-new-experience, especially "Set Up Email Filters" about halfway down the page.