Yes, James joined the original Order of the Phoenix. He fought with them during the First Wizarding War, alongside Dumbledore and Alastor Moody. He likely maintained his childhood friendship with Moody, but many of the Order members died early in the fight. In fact, from how it was described, it is unlikely the Order would have won the good fight had Voldemort not accidentally killed himself.