Both the original sentence and yours are fine. Would is in keeping with the laws of the sequence of tenses as tried is a past tense form. can - could will - would shall - should may - might must - must Use the second form of the auxilary with past tense verbs: I knew he could do it if he tried.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.