That's 12/3 romex feeding that. As long as the screws that support the fan go into the wood I see no problem.