You see the margin before you commit
The order ticket shows the buy and sell price, the margin the position will use, the leverage limit that applies to that instrument and account type, and any stop loss or take profit you have set. Nothing is submitted until you press the button.