Yes it was but it did happen that even small kids were married to each other just to get legitimate claims on someones throne. Though, I'm not an expert on it and this is just something I remember drom the books I've read.