You need to respect the laws of copyright. You might take a chance on using an uncleared sample on a record that will only ever sell a couple of thousand copies. You might get away with it, or you might not. It's up to you to consider what might happen if you get caught. One day, you'll want people who sample your records to pay you for the privilege.
Dance music is created using samplers and computer sequencers.
DJs might like you to think that they do it by clever turntable tricks. They might impress a live audience but in the studio an altogether better degree of precision is required. When your loops and rhythmic elements are in place, courtesy of your sampler and sequencer, you can add turntable effects either live or, more controllably, by another layer of samples. If you can manage without vocals, or just the occasional vocal sample, then your basic kit will be a sampler and computer sequencer, and of course a pair of decks and a mixer to get your source material. Browse the gear pages to find out more.