Depending on the lecture, you could, but this should be avoided if possible. A child is likely to be disruptive to both the lecturer and others in the class.