Is it legal for a 17 year old to date a 19 year old in California if they don't have sex?

Without sex or marriage, it's perfectly legal.