Yes, as long as you are using the same code for the same album, regardless of what type of format, you can use the same UPC code.
- It is also acceptable to have different bar codes for different formats of the same album: vinyl, download, CD, etc
- If you change the actual content up in any way, you should register it as a new (version) of the album, which would require a new UPC code.