in theory, yes you can come back.
But as many forgot to mention here, is not only the experience thing, but any employer will ask you this question : why ? and what was the reason (of course, there is personnal reason too).
The thing is since the Germanwing crash, airlines may be more reticent to welcome back pilots...