Pins 6,7,8 will work fine for non-PWM uses, it's that the clock/timer that would normally manage the PWM for those pins will be in use counting your frequency events rather than
counting regular clock cycles.
Pin 47, right? You can use one of the other PWMs associated with one of the other timers to make an output frequency to feed back into pin47.