Yes, we can include the external Library into Lightning Component in Salesforce. To reference a JavaScript library, upload it as a static resource and use a <ltng:require> tag in your .cmp or .app markup.
The framework’s content security policy mandates that external JavaScript libraries must be uploaded to Salesforce static resources.