Yes they can. Each class level increases their CR by 1, so they should probably choose ones that work with their racial abilities (example: If it's a CR 8 bruiser, there's little point in it suddenly starting to be a Wizard). But it can be done.