Testing a Voltage Regulator

So it will output less than 5V if the input is for example 6V?

Could I use an analog input of a microcontroller to find out if this point is reached?