How to add a LED to be triggered for 5 seconds without blocking any other code

I did write the code I just am still new to arduino and not sure how to use timers. Would I put the If statement in the if statement? Thanks