| Castilliano |
This sounds like a PF1 question and this is the PF2 rules forum.
That said, no, normal Ranger's don't get cantrips in PF1 ever.
If the Ranger has a 12+ Wis (again assuming a normal Ranger), then they get a bonus first level spell. This means nothing until they're a caster at level 4 where it adds to the zero to give one spell they can cast per day.
That "zero" also opens up spell-completion items for their use, not just the spell-trigger items they can use at 1st.