Two Options Radio Button with Boolean Return

Hello together,

is there any way to create a radio button inside a form with two options and returning boolean value true or false depending on which option is selected?

Thank you in advance,
Gorden