Can country pair fixed effects be used to address endogeneity in the case where the endogenous covariate is continuous?

I have seen the country pair fixed effects used to address endogeneity in studies on impact of RTAs, but RTAs tend to be dummy variables