Yep that’s essentially how it works. However, it can be risky either way. For instance, what if the price of Luna had gone up massively? Well then you would have had to repurchase Luna for a lot more than you sold it for. Basically, it reduces down to the exact same scenario as shorting a stock.