Using a custom Carrier Service to refuse orders to PO Boxes

Our store has been successfully using our own Carrier Service app for some time to implement some custom logic in our shipping pricing. I was wondering if I can also use this app to refuse certain orders, specifically those to PO boxes. Can I return an error/refusal (with explanatory message and exhortation to choose an alternative destination address) from the Carrier Service?