Yes, towards the end of the generation each number is tested for uniqueness within its horizontal and vertical lines as well as its sector.
What makes a board a "good" one is of course the quantity and placement of the initially displayed numbers. My code does not address that aspect. It only dabbles in randomly generating the full board so that players aren't subjected to the same pre-generated ones over and over.