It depends.
Basically, the game calculates something like fractional skill levels, so even if you receive a "not enough to improve your skill" message (or no message for the many other places in the game that train skills as a side-effect), mostly that progress is not lost, it is still recorded.
However, it is well possible to actually gain no experience whatsoever. At the academy, it is unlikely, but not impossible.