Are there rules to composing classical music?

Yes ... one must have a thorough knowledge of music theory and counterpoint. One must also know about the instruments he/she is composing for - their ranges and limitations. Some instruments readily read the "C" clef, others you will have to transpose into other keys for them

Start with a simple one line melody at first. Then add other voices.