Sell instead buy order

I made an order to sell bitcoin. But I wanted to buy bitcoin. Can I cancel this trade because I didn´t want this trade if it is still confirmed?

if the offer has not been taken, you can cancel it from Portfolio > Open offers.
If the trade instead has started, then you are either required to go on with it, or you can cancel with a penalty: Table of penalties - Bisq Wiki