Yes - you just pair the Bluetooth Speaker with the music source i.e. PC laptop or iPod or your phone via the bluetooth.
The range depends on the quality of the speaker signal and the distance between the two devices which varies between issues like solid walls or interference. As you will be using your laptop this can be moved closer to the speaker for better connectivity where range isn't an issue then.
As for the Dr Dre Pill speaker - it's okay as a basic speaker but there are better speakers out there for the money. I have a Cambridge Audio GO purchased from Richer Sounds which I think is brilliant and meets my expectations.
I don't work for Richer Sounds and there are other speakers and retailers
http://www.richersounds.com/product/wireless-docks,-speakers-and-portables/cambridge-------/go/camb-go-blk
Always try a demo first before you purchase any speaker to see if you like it.