Yes, there is no difference between SSDs for Macs and Windows machines, sometimes you may find "Mac certified" ones which cost twice as much, but they aren't needed. As long as your laptop has a 2.5" hard drive, which I believe a 2010 MacBook does, you can swap it in, format it, and install OS X.