Yes, you will retain your NTN for the duration of training, this includes any period of OOP. This is contingent on you continuing to comply with the conditions of taking up a training post (Appendix 1 of the Gold Guide).