Birthday parties

If your child can’t make it to a birthday party, is it bad etiquette to NOT buy a gift still?