It is not recommended to make raised beds from pallets. Since most pallets have unknown origins and are often chemically treated, its not recommended to use them for vegetable gardening, since their contents could potentially leech into your harvest. If you are using them for flower beds and don't mind the impact on long term soil health, they could certainly work in a pinch, although its probably better to make a new in-ground bed if you are budget conscious.