The 2002 should work for a 2003, but not for a 2004. In any case, the keyless remote part number for the 2003 is the same as for the 2002 but changed in 2004. The price at the first source is also twice as much for a 2004 remote as for a 2003, so I would not expect a 2002 or 2003 flip key to work on a 2004.
www.remotesandkeys.com