Yes, you can create a scheduled apex class to run code at particular point of time. You can check the full details on how to implement a schedule class, set the schedule and finally running it, here.
Your schedule class would look something like this (shamelessly copied from salesforce site) :
global class scheduledBatchable implements Schedulable {
global void execute(SchedulableContext sc) {
//call your class here
NameOfYourCLass myCLass = new NameOfYourClass();
//call your methods
myClass.insertRecord();
// if your logic is very small then you can put that logic right here.
// another point worth noting is that it is always a best practise to
call a batch class so that very high volume (>50000) of records
can be processed.
}
}