Do magnets with the same poles repel?

Yes, they repel when the same poles are together.