Yes. Diary of a Wimpy Kid: The Third Wheel (2012) is definitively the 7th book in the main series.
The title "The Third Wheel" sounds like it could be Book 3. But the numbering is unambiguous: it's Book 7. The title refers to Greg's social dynamic at the Valentine's Day dance—feeling like the third wheel to Rowley and his girlfriend—not the book's sequence position.