In general the chance for inter-department communication is small. However
some small community programs could have the same stuff to handle residency
applications for multiple specialties.
1) If no one finds out, there is no effect on your application.
2) If they find out they may question your commitment for the specialties.