Hello @Connor164
Yes of course! You only need to give your host 30 days to change your dates on your original stay and you can leave earlier than scheduled. Maybe send them a little message so that they are made aware of the change in circumstance but it is done via your Airbnb reservation and the amount owed is calculated automatically and the host is notified.
Some hosts are not aware that their original cancellation policy is replaced by Airbnb's long term cancellation policy which is 30 days notice.
If you need more info, look up long term cancellation policy on Airbnb.
All the best
Joëlle