It is mathematically possible for a universe to simulate itself, including containing instances of itself running simulations.