Absolutely. Any AI could have a "legal team" (or conscience) that checks if any output and performed actions are permitted according to local (server location and client location) laws, so not violate human rights, Asimovs laws etc.
It's just that so far nobody cares about explicit checks because they cost resources or slow down the models.