All Samsung phones come with a warranty. Warranty mostly covers software issues but there instances where some hardware issues may be covered.
Samsung phones under the “Samsung Care+” program come with 2 years warranty and 1 year screen warranty. Samsung devices sourced from other markets come with 1 year shop warranty that covers software issues.