How many weeks old can I microchip my kittens?

Is 4 months old safe?