Would my prepaid plan work in a locked phone?

i want to buy a locked phone (AT&T) and use my AT&T prepaid plan on it. Would it work?

iPhone

Follow this Question