Yes, and it happens automatically. The most common example is a parent paying dues and adding an optional donation at the same time — if dues and donations are set to go to different accounts, ClassroomParent splits that one payment behind the scenes so each part lands in the right place.
The parent still only sees and pays a single total; they never need to do anything differently. Most purchases only ever involve one account and work exactly as they always have.