Can I track events in my Shopify app using GA4?

Looking to see if its possible to track events within the shopify app im creating. I’ll have a small onboarding flow after install and was hoping to see if I can track click events when the user steps through the flow.

Ideally this can be using GA4