Yes,
Cheng ...
Although the regular Union (Northern) Army did not usually wear red kepis for artillery, yellow kepis for cavalry and blue kepis for infantry like the regular Confederate (Southern) Army, there were some volunteer Union regiments that did.
The Union Army did, however, follow the same rule of red for artillery, yellow for cavalry and blue for infantry as the Confederate Army, but with trouser stripes and rank (chevrons for enlisted and shoulder devices for officers).
The Union Army used more than just red (scarlet), yellow and blue (light blue). Here is a list of the colors used for the different branches of service:
Artillery-scarlet;
Cavalry-yellow;
Engineers-scarlet piped with orange;
Hospital Corps-maroon piped with white;
Infantry-light blue;
Ordnance-black piped with scarlet;
Post QM Sergeant-buff;
Signal Corps-orange piped with white.
Here are some Union "Volunteer" examples:

Battery A (Chicago Light Artillery),
1st Illinois Light Artillery, 1859-1862

Salem Zouaves,
Massachusetts Volunteer Militia, 1861

2nd Regiment,
New Hampshire Volunteer Militia, 1861
Hope that helps,
Cheng ...
All the best,
Richard