LCD Display and Keypad

Can I power an LCD display and keypad from an external 5V regulator since it’s not recommended that this be done using the 5V supply pin of the due? I want to use the LCD display to display the phase voltage and supply frequency of an inverter I’m designing and I want the keypad to be used to input operating parameters of the inverter.