One more question about buttons to frames

is it possible to link a button to a particular frame inside a movie clip?

I have a button that I want to open different frames inside a scrollbar.

on(release){
NameOfMC.gotoAndPlay(whateverframeyouwanthere)
}