Yes, you can use both. And they both have the same meaning.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
for learningwhether I could use the second sentence with the same meaning as the first oneYou can use it with the same meaning or with a different meaning.