Yes. Any time that you are long on the market a SELLSHORT order will close the long trade and open a short trade and any time that you are short on the market a BUY order will close the short trade and open a long trade.
Warning: Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced clients who have sufficient financial means to bear such risk. The articles, codes and content on this website only contain general information. They are not personal or investment advice nor a solicitation to buy or sell any financial instrument. Each investor must make their own judgement about the appropriateness of trading a financial instrument to their own financial, fiscal and legal situation.