If the dog swims in the pool will it ruin the filter?

No. A dogs hair may cause the need to clean the filter more frequently but it will not cause any damage. Dogs skin and hair tends to be more oily (and bountiful!) than a humans so if the dog swims a lot you may need to adjust your chemical usage.