Hello, how are you?

I would like to ask a question.
Expression A.
a piece of music written for marching toExpression B.a piece of music written to march toExpression A is from Oxford English Learner's Dictionary, and
Expression B is what I made up.
Can
Expression B be used instead of
Expression A?
Thank you for the explanation and your help.
