A (1, k)-overlap-free code of length n over \(\mathbb {Z}_q\) is a non-empty subset of \(\mathbb {Z}_q^n\) in which the prefix set with length at most k of each codeword does not coincide with the suffix of the same codeword or any other codeword. Such family of codes has applications in DNA-based storage systems. In this paper, extending the Zero Block Construction proposed by Blackburn et al., we exhibit a new family of q-ary (1, k)-overlap-free codes. We then establish a necessary and sufficient condition for the codes to be non-expandable. For the expandable codes, we construct a new family of q-ary (1, k)-overlap-free codes to expand the codes to be non-expandable. Furthermore, enumeration formulas and lower bounds for the size of the resulting codes are provided, and comparisons with the related works are also given.