Sure you can do this, but don't forget to set the TRISC register at the top of your code to configure your i/o as output.

Code:
TRISC=0 ' configure all PORTC I/Os to output
    '
    '
    '
    '
PORTC=%00001010 ' Write to PORTC