Can a Conditional GAN be used for a regression task, where the condition can take any continuous value?

I came across conditional GAN, where the classes can be provided as input to the GAN. I would like to know, if the same network can be used for classes which can take any continuous value.ie, the generator once trained should be able to produce output for any condition, even if it was not a part of training set.