Sure YOU can.
Depending on how many registered users you have (and how many you plan on having) I would either use a txt file for each user and just add to a list of visits or I'd use a db with at least 3 cols- autoinc, user, date. Just select max autoinc,date where user=$username.
This is waaay over-simplified, but it can get you started.