ISRC codes, yes. UPC codes, no.
You can (and should) use the same ISRC codes for re-releases or re-submissions of a release to keep your play count the same on streaming service providers.
If you use a new ISRC it will reset the plays to 0.
UPC codes are specific to the release and can not be used twice. If a release is taken down or resubmitted or distributed through another partner it is technically not exactly the same and thus needs a new UPC to designate the new version of the release as such.
We have the option to automatically generate UPC and ISRC codes for each release, so you don't have to think about it (or even know what that means).
But if you want to specify your own ISRC codes for some reason, that's easy to do. All you need to do it type them in the ISRC field when editing each track!