Yes, as long as the transaction reaches 50u, there is no requirement for the coins to stay in the wallet.