Maybe, go 2 gift shop & find out, , ok ??
Not sure about at John Muir. Have you gone online? You may be able to purchase, print receipt and exchange for pass at any National Park Gate Entrance.
You can buy pass at all National Parks, examples: Yosemite in California . Volcano National on the Big Island, Hawaii .
Thanks! Your answer is awaiting moderation.