Yes, last.fm is a free service. You just create a profile and download the associated scrobbler and scrobble your music to your profile. There is a subscription service that offers a few more features but it's in no way necessary to enjoy the basic services.