Could somebody maybe try help me understand

If my cycle was longer than 28 days or shorter would my lmp and ultrasound stil match up to the same number of days/weeks . I had a 12 week scan and lmp and ultrasound matched perfectly . But is that the same for all cycle lengths