Your question can be looked on in 2 ways π
answer yes:
When we come to thailand from norway, my wife use her thai passport, in norway leaving, transit amsterdam and arrival Bangkok. No problem π
When leaving thailand she use her norwegian passport in bangkok, transit amsterdam to schengen, and no passport question arrival norway.
Done this last 10 years, no problems π