Use interior door as shed door but under cover
If it's a hollow core, then no, it won't be okay.
A solid core or panel door of some kind will be okay for a while, but you'll get the longest life out of an exterior grade door.