Yes, it is allowed to share contact details on freelancer. However, you should be careful when sharing your personal information with someone you don't know because there are many risks involved in that.