Yes, if a three month old puppy is bitten or scratched by an animal with rabies it can and probably will contract rabies unless it has been vaccinated against the disease.
This immunity does not last forever however and 34 months is the time to get the first rabies vaccine.