It is a little awkward in construction (I would write ' as a matter of pride and just for / in a spirit of fun '); however, your interpretation is accurate. As a matter of form/trust/law/choice/course/principle/practice/faith/policy -- these are some of the commoner collocations with this phrase.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.