Yes, you can assign a legal entity, for example, an NGO or company, as a beneficiary to an asset.
The Heartbeat protocol will be triggered in the same way as if you had assigned a person – the legal entity will be informed in the case of an unforeseen event, following the Heartbeat protocol.