Could DB have different partition key between table and index?

For example table job with column , user ID, and job ID, job execution time.

Could the table be partitioned with userID, and table index be partitioned with job execution time?

or the partition key need to keep same for table and index?