Yes, as ~Morthax said you can go to the persons page. You can also click on your friends list in the top menu and the little bulletpoint next to their name will tell you if they're online or not. Green means they're on, red means they're off, and blank means their activity is hidden.