Even this is not quite right. For keyboard instruments, that have a fixed set of pitches that notes map to, you have to choose a temperament, a fixed set of pitches for each note (unless you're on a clavichord, where you can adjust it a bit by how hard you strike the key). Fretted instruments may or may not be tempered. Guitars are, since the frets on it limit the pitch range of a given note, though it is still a range. Viols aren't, because the frets are soft gut and used to brighten the sound, so the pitch range is much wider for a given note.
For string or wind instruments playing without keyboards, there is no temperament. Each note represents a range of possible pitches, and what pitch you choose depends on the notes around it. For example, if you are repeating or holding a note, you don't want it to change pitch. But if the harmony around that note is changing, it may be in tune at one point in time, then out of tune at a later one. String quartet playing involves a great deal of working out compromises about what pitch each note should have.