If you buy the codes, yes. If you only license them (which is what the original comment claims is the only way to get them legally), and that license explicitly forbids training, that seems to be less clear-cut. I have no idea if such restrictions are legal or would hold up to challenge, but it's less clear than the case where you buy a book and can then do whatever you want with it.