This phrase is also very close to "heed my warning," which gives it an added meaning. I would think that "heed my lecture" would be rarely used and only in cases when the subject of the lecture is of great importance and may also have implications something bad happening to the student because they did not pay attention beyond just receiving a bad grade. It is also much more philosophical in nature and would not be used in common conversation. One would be more likely to say 'listen' or 'pay attention to' rather than 'heed'.