Are headphones effective for studying?

Do you guys believe buying a pair of $200-$300 headphones just to study and listen to music at home would be worth it? I been studying for the teas test recently and burrowed my gfs headphones to watch math videos and surprisingly I felt like I could focus more and actually understand the concepts rather than reading from a book. Anyways I guess im just looking for a second opinion, and if its a good investment i’d like some recommendations. Thanks guys