Yes. "Nine in the Afternoon" by Panic! at the Disco is included in the Rock Band 2 track list.
It was one of the more contemporary indie picks on a soundtrack that otherwise leaned heavily on classic rock, which made it a welcome change of pace. The track sits in a moderate difficulty band across all four instruments, so it works well for mixed-skill groups.
Track lists shifted slightly between regional releases and later reissues, so if you cannot find it, confirm you have the standard edition rather than a limited variant. The full setlist is easy to verify against the game's own song menu before you buy.