Yes. You need a couple of fields (not text boxes). The first could be a text Content control and the second a field to repeat that data. The second would be formatted using your bar code font.
You may want to look at
Repeating Data or
Create Mapped Content Controls on Greg Maxey's website.