I believe so but don't quote me lol.
If I had a pile of topsoil I would add An even part mix peat moss, perlite, will give you a solid ass potting mix. Some worm castings A little bit of dolomite lime and you're golden.
To be honest though If I had a choice between topsoil vs compost I'd...