Question [Q] With Custom ROM is it possible to require apps be signed by own signature?

With a custom ROM, is it possible to to create an image that will only allow apps signed by a predefined certificate? Essentially, can you build a ROM that will only run your own APKs? Has anyone tried this?