No, you do not get a refund if you cancel your YouTube Music Subscription. However, you can get a free trial for the month, so you will only be charged if you cancel your subscription before the trial month ends.