Can I get a refund if my trademark doesn’t get registered?

No. The USPTO does not issue refunds when a trademark application is refused, so research and evaluate a potential trademark before applying for registration.