smd regulator for running a single 328 ic?

thanks for the input, i think i will use a ti LM2936MP-5.0/NOPB

my only concern is the max regulation 50ma, is a bit close to the currents ive measured of a running 328 ie 20ma not leaving much margin for error

my 328 will be idle as power to the circuit will be turned off

will this be ok?