Yeah, you're right. Though the first expression's more formal, kinda bookish than the second one.