doing Yoga after a workout

Hi guys! i hope you are doing well and safe

i want to ask you guys something , is it alright to do yoga after a workout ?

let's say i workout then after two hours i do yoga

is it okay to do that ?

thanks in advance!