Foreign income tax on rental property

For tax residents of USA, no deductions are allowed in Spain for rental income which is taxed at a  flat rate of 24%. The same property shows a tax loss on the USA tax return because of the allowed deductions. Will I be able to take foreign tax credit against my USA income tax for the income tax paid in Spain?