You don't need to work on the same NOC the entire one year, however, it must fall under NOC 0, 1, 2 or 3. For PNP, ideally you would be working for the same company until your PR process is done, otherwise you would need to advise the PNP program and it is up to them to accept it or not.