No. The colors of the our rainbows occur because white light is in effect. Different sunlight colors would produce different colored rainbows. A red sun might have a rainbow that didn’t have red, or yellow, or purple. A blue sun might not have blue, or yellow, or the same green, or purple. Different colors would occur if our sun was actually yellow.