Can we apply restriction to punch In and punch Out time?

Yes, this can be applied using policies P35 and P71.

 

P35: Restrict Clock In outside specific time period

P71: Restrict Clock Out outside specific time period

 

You can enable these policies from Settings > Policies > Add New Policy