You can, but keep in mind that canned pineapple is much sweeter and has a softer texture. Make sure to drain it thoroughly and add more lime juice if needed.