There is no connection between posting a preprint in arXiv and publishing the corresponding paper in a journal with respect to costs. However, you should check whether the journal allows to post preprints online, see https://www.researchgate.net/post/If_a_paper_is_accepted_in_a_journal_is_it_mandatory_to_remove_it_from_arXiv .
Hussein Al-haj Ahmad you should check in Sherpa Romeo (http://v2.sherpa.ac.uk/romeo/about.html) which are the publisher's conditions for publishing. Search by journal title and the system will show you relevant and helpful information.