Absolutely. While 1950s/60s school sock hops often enforced dress codes (skirts/dresses for girls, slacks for boys), modern sock hops are overwhelmingly casual.
Jeans are perfectly acceptable—and versatile:
Check the specific event invite for any theme (e.g., "50s formal"), but for a typical community/school "sock hop" today, jeans are standard attire.