The shared secret is either shared beforehand between the communicating parties, in which case it can also be called a pre-shared key.
The shared secret may be shared between the parties at the beginning, than it is called a pre-shared key.