Is a iPhone locked to the phone number you ordered it with?

I ordered two phones in two colors and I put the wrong phone number for the black model. Could I switch the black model so it has the phone number of the white phone?

Of course not, you can "port" any phone number to any phone, don't be afraid to call your customer service.

If it is a GSM phone, you can just swap the SIM cards and put them in the phone you want to have the number you want.

If it is a CDMA phone, (Verizon or Sprint), you just call up customer service or go to a Verizon store and have them swap the numbers for the account you want them to actually be on.