No that is not possible at the moment. MCServer has hardcoded protection against invalid item and block ID's which is updated every time new objects are added. According to this check beds are still invalid items and so you cannot have them in your inventory. I should come up with a more flexible solution for this, because right now you always have to wait for MCServer to update before you can script in the behaviour of new items.
That said, when item ID's are valid according to MCServer you can script their behaviour, like for example beds
That said, when item ID's are valid according to MCServer you can script their behaviour, like for example beds