Brabus covered most of it, but to make it a little clearer...
Yes, and the amount of time that will be logged will come from Hobbs meter.
Also, if you only need a couple of hours, most flight schools offer a intro flight for about a 100 bucks which is log-able time, and if you have a couple flight schools in your area... Can be somewhat cheaper then dropping 150 - 180 for each hour for a couple of hours at the same place.