hello can somebody explain me

if One day i do all work out for chest - am I allowed to do swimming on over next two days (while swimming I do use chest muscles and shoulders) or it will affect quality of recovery time of chest muscles

for an instance on monday and thursday i do all possible chest work outs and can I swim on tuesday and wednesday when its recovery time for chest muscles as when i swim i use chest muscles and shouldres?