Welcome.
That would be possible.
We help you with 'your' code.
Have you gone through the examples in the RTC/Time library?
Have you got the RTC working with the arduino?
Have you searched this site for previous similar threads?
Always show us your ‘current’ complete sketch.
Use CTRL T to format the sketch.
Please use code tags.
Use the </> icon in the posting menu. g
[code] Paste sketch here. [/code]
Show us a good schematic of your circuit.
Show us a good image of your wiring.
Give links to components.
Posting images:
https://forum.arduino.cc/index.php?topic=519037.0