Is it possible to replace a SIM card with another SIM card and keep the same number and credit?

The credit is shared between all of the SIM cards in an account, so the credit will remain the same if a SIM card is replaced.