Yes, you can pick the same number twice on one line: once among your five main numbers and once as your Thunderball. The Thunderball is selected from a separate machine, containing a separate set of balls, so the same number can appear twice in the same draw.