Did you try? What did you get? Short answer: yes, you can put a variable in there. It's interpolated just like in doubly quoted strings. But then you may and
should be interested in
\Q (and
\E). What is this stuff I'm babbling about, anyway? Well you can find out in the same place where you would have also found an answer to your own questions, i.e. precisely in the
docs!