1. I like science but not math.

2. I like science but I don't like math.

Does #1 mean #2?

Yes. It is the same statement.