Answer
Yes, James II of Scotland was indeed married. In 1449, he entered into a marital union with Mary of Guelders, the eldest daughter of Arnold, Duke of Guelders and Catherine of Cleves. This alliance aimed to strengthen ties between the Scottish and Guelders dynasties and served as a strategic move to secure political alliances in Europe.