Yes it can, though it won’t in the presence of carboxyl groups. There is an assay for edc which involves a reaction with aniline, for example. I guess there will be other examples with amines, but probably 99.9% of cases have an amine and a carboxyl.