Sure, as long as the cups are reasonably close in thickness and designed to use the same size balls (the vast majority of bottom brackets use 1/4" balls but there are a few exceptions). If the replacement cups are markedly different from the originals, you may chainring clearance issues or be unable install a lockring.