I joined the RAF as NCA after 5 years in the Royal Marines.
My time served did count towards my pension and flying pay but not towards seniority in rank. You would have to be a substantive PO for seniority to be affected.
I did have to do the RAF basic training when I joined.
PM me if you want any more info.