Is it possible to do research during residency? If so, is it strict to clinical trials or basic research is option, too?

Thanks,

Dimitrije