There's plenty of sober people who think this idea is entirely possible, maybe even probable. The idea goes by the name the Mathematical Universe Hypothesis, and the foremost proponent is Max Tegmark.
https://en.wikipedia.org/wiki/Mathematical_universe_hypothes...
https://arxiv.org/abs/0704.0646
https://space.mit.edu/home/tegmark/crazy.html