Radio button selection as a single-line text entry

Radio button selection as a single-line text entry

Is it possible to have a radio button selection be a single-line text entry?

I'd like to have two choices: 1. a person's name, and 2. a "write in" entry.  If "#2" is chosen, I'd like the user to be able to enter a name other than that presented as choice #1.

Can this be done with radio buttons or some other field type?  Thanks.