Uploading attachment from backend API

Can we assume that an attachment will be immediately in the uploaded/present state in the OnlineDB after uploading it via a backend API request in CloudCode?

Would this also apply to using Attachment.create() in CloudCode?