Yes, you can, but there are some limitations, and it depends on how the images are repeated. Here's how you do it depending on the direction of the replay:
Repeat: do not think that it is possible.
repeat-X: you will stack them vertically in a sprite sheet. You can only have one image per line. All images should have the same width.
repeat-y: you should align the iages horizontally and have only one image per column. All images must be the same height.
You are also limited by having separate sprite sheets for each repeat / no repeat method.
source share