yup.. you can do it with any object.
Draw your shape, or make your shape (if its a default square or circle, etc)
then just take the type tool and put it on the line it creates a / should appear next to the cursor.. and then you just click.. and type away.
if you make your own shape, remember that it will be based off of where you started your shape, and how you draged your anchor points... that will dictate if the copy will go on top or below the line you just made.
make sense??