Grammatically that's correct. However, maybe you wanted to say "I'm going to listen to my teachers carefully and do my homework." Both sentences are correct, but they have different meaning. You could listen carefully and also do you homework carefully.
Does this help?