It does not matter if your connection to the Time Capsule is via ethernet or wireless. As long as the two devices are part of the same network your Mac will be able to see it and subsequently backup.