Yes, you can put a bifold door on hinges. There are a few things to keep in mind when doing so, however. First, make sure that the door is properly balanced. This can be done by hanging the door from the top hinge and making sure that the bottom of the door clears the floor by about 1/8 inch. If it doesn't, shim out the bottom hinge until it does.
Next, check that the hinges are properly aligned. The door should be centered in between the two hinges when closed. If it's not, adjust as necessary. Finally, make sure that the latch is properly engaged when the door is closed.