The first condition is that the lug pattern is the same for both vehicles. You can find this information in the owner's manual for your vehicle. If they are not the same, you can change the lug pattern, but you must use the appropriate hub rings and lug nuts.
The second condition is that the tires are the same size. You can find the tire size on the sidewall of your tire. If the tires are not the same size, you will need to get new tires.