Yes, you don't need to be paying corporation tax to claim Research and Development Tax Credit. In fact, it's better to be loss-making as you can claim the highest amount (33%) in SME R&D Tax Credit and receive a repayment in cash. The UK government wants to support innovation and technological growth, which is why they are generous in helping companies purely investing in R&D and not generating any revenue.