No, generally the rule is to work upwards, starting with darker carpets, lighter walls, and then working up to white or other pale-colored ceilings. It can be a good idea to match the colors of your walls and carpet, going slightly darker with one and slightly lighter with the others.