It is all about the needs of your Body. Vitamins, kcal, minerals…. The body doesn’t care how it is mixed, but you need to take care that everything is balanced. So pizza is not necessarily unhealthy, but it is a pretty unbalanced food. Most times to much fat, salt and so on. But if it fits in your macros, go for it.
also it can be pretty healthy for the soul. Pretty important to keep that in mind. Soul and body can only be healthy together. If one is corrupted, the other one is too.