Can i do an indoor bike workout using a gym static bike

i have given up on my wahoo turbo and zwift as i had no fun in then anymore

but ive rejoined a gym and wondered if i could use my garmin epix 2 to run an indoor cycling training session

the indoor gym bikes do not have connectivity so no cadence etc ...