The more general concept is the "inner product". An inner product is a function, <u, v>, that maps pairs of vectors to to members of the underlying field (typically real or complex numbers) such that
1) <au, v>= a<u, v>
2) <u+ v, w>= <u, w>+ <v, w>
3) <u, v>= <v, u>* where the "*" is the complex conjugate (so if the field is the real numbers, <u, v>= <v, u>.
We then define two vectors to be orthogonal (perpendicular) if and only if their inner product is 0.
Given any inner product on a vector space, it is always possible to choose a basis so that the inner product of two vectors is just the sum of the products of corresponding components in that basis. In that case, yes, the basis vectors not only orthogonal, they are "orthonormal"- the inner product of a basis vector with itself is 1.